<?php
include("connection/connection.php");
if(isset($_POST['submit']))
{
$str=$_POST['str'];
$reserv_id=$_POST['reserv_id'];
$qr="update tbl_dtls_q1_reserv set reserv_location = '$_REQUEST[Location]' , reserv_latitude = '$_REQUEST[Longitude]' , reserv_longitude = '$_REQUEST[Latitude]' , reserv_cap='$_REQUEST[cap]',reserv_scst='$_REQUEST[scst]' where id='$reserv_id' and reserv_id LIKE '$str%' ";
$res=mysql_query($qr);
if($res)
{
header("location:q1_rwss_edit.php");
}
}		
?>